package com.example.yjhvideo.service.serviceImpl;

import com.example.yjhvideo.entity.Video;
import com.example.yjhvideo.mapper.VideoMapper;
import com.example.yjhvideo.service.VideoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class VideoServiceImpl implements VideoService {
    @Resource
    VideoMapper videoMapper;
    @Override
    public List<Video> getAllVideo() {
       return videoMapper.selectList(null);
    }

    @Override
    public Video getVideoById(String id) {
       return videoMapper.selectById(id);
    }
}
